import { Entity, PrimaryColumn, Column, CreateDateColumn, UpdateDateColumn } from 'typeorm';

@Entity({ name: 'enterprise' })
export class EnterpriseEntity {
  @PrimaryColumn({ length: 32 })
  id: string;

  @Column({ length: 20, comment: '用户名' })
  username: string;

  @Column({ length: 128, comment: '密码' })
  password: string;

  @Column({ length: 11, nullable: true, comment: '电话' })
  phone: string;

  @Column({ length: 20, nullable: true, comment: '邮箱' })
  email: string;

  @Column({ length: 20, comment: '公司名' })
  company: string;

  @Column({ length: 20, nullable: true, comment: '公司地点' })
  location: string;

  @Column({ length: 20, nullable: true, comment: '公司统一信用代码' })
  code: string;

  @Column({ length: 200, nullable: true, comment: '公司简介' })
  profile: string;

  @CreateDateColumn()
  create_at: Date;

  @UpdateDateColumn()
  update_at: Date;
}